-- GENERATED SPELL FOR [Ice Caller Briatha] --


function spell0_25949(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_25949', 0, 1)
end

function spell1_25949(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(20792,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25949', 7000, 1)
end

function Sorts_25949(pUnit, Event)
local choix_sorts_25949 = math.random(0, 1)
if choix_sorts_25949 == 0 then
pUnit:RegisterEvent('spell0_25949', 1, 1)
end
if choix_sorts_25949 == 1 then
pUnit:RegisterEvent('spell1_25949', 1, 1)
end
end

function mob25949_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25949', math.random(1500, 3000), 1)
end

function mob25949_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25949_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25949_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25949, 1, 'mob25949_Action')
RegisterUnitEvent(25949, 2, 'mob25949_Leave')
RegisterUnitEvent(25949, 3, 'mob25949_Kill')
RegisterUnitEvent(25949, 4, 'mob25949_Die')
